package com.inspur.icity.bus.base.core.gaoderesult;

import com.fasterxml.jackson.databind.util.JSONPObject;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.collections.map.HashedMap;

import java.util.List;
import java.util.Map;

/**
 * Created by jn-dinggao on 2017/12/20.
 * 公交乘车方案
 */
public class TransitResult {

    /**
     * 乘车方案价格
     */
    private Object cost;
    /**
     * 预期时间
     */
    private String duration;
    /**
     * 是否夜班车
     */
    private String nightflag;
    /**
     * 总步行距离
     */
    @SerializedName("walking_distance")
    private String walkingDistance;
    /**
     * 换成列表
     */
    private List<Map<String,Object>> segments;

    private List<Map<String,Object>> segmentsPojo;

    public Object getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getNightflag() {
        return nightflag;
    }

    public void setNightflag(String nightflag) {
        this.nightflag = nightflag;
    }

    public String getWalkingDistance() {
        return walkingDistance;
    }

    public void setWalkingDistance(String walkingDistance) {
        this.walkingDistance = walkingDistance;
    }

    public List<Map<String, Object>> getSegments() {
        return segments;
    }

    public void setSegments(List<Map<String, Object>> segments) {
        this.segments = segments;
    }

    public List<Map<String, Object>> getSegmentsPojo() {
        return segmentsPojo;
    }

    public void setSegmentsPojo(List<Map<String, Object>> segmentsPojo) {
        this.segmentsPojo = segmentsPojo;
    }

    @Override
    public String toString() {
        return "TransitResult{" +
                "cost='" + cost + '\'' +
                ", duration='" + duration + '\'' +
                ", nightflag='" + nightflag + '\'' +
                ", walkingDistance='" + walkingDistance + '\'' +
                ", segments=" + segments +
                '}';
    }
}
